package DateDemo06;

import java.util.Scanner;

public class Sum {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个整数");
        int a = scanner.nextInt();
        System.out.println("在输入一个整数");
        int b = scanner.nextInt();

        int sum = a + b ;
        int cha = a - b ;

        System.out.println("和"+sum);
        System.out.println("差"+cha);
    }
}
